using System.Net;
using Kiwi.Node.Modules.Builtin;

namespace Kiwi.Node.Modules.Http
{
    public class HttpRequest: EventEmitter
    {
        public HttpListenerRequest Request { get; private set; }

        public HttpRequest(IApplication application, HttpListenerRequest request)
            : base(application)
        {
            Request = request;

            SetPropertyValue("url", Request.Url.ToString(), true);
        }
    }
}